package com.niiwoo.civet.mobile.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author: wuke
 * @Description:
 * @Date: Created in 14:04 2018/4/14
 */
@Data
@ApiModel
public class LoanPreSubmitRecordSaveReqVO {
    @NotNull(message = "借款金额不能为空")
    @DecimalMin(value="0",message = "借款金额不能小于0")
    @ApiModelProperty(value = "借款金额", required = true)
    private BigDecimal loanAmount;

    @NotNull(message = "借款期限不能为空")
    @ApiModelProperty(value = "借款期限", required = true)
    private Integer deadline;

    @NotNull(message = "借款标题不能为空")
    @ApiModelProperty(value = "借款标题")
    private String loanTitle;

    @NotNull(message = "产品类型不能为空")
    @ApiModelProperty(value = "产品类型（8、小易借；9、社保借；10、信用卡借）")
    private Byte projectType;
}
